<div id="post_pending_reject_container">
    <div id="post_sidebar">
        <?php 
            if($this->session->userdata('role') === 'admin') { 
                echo anchor('post/pending/view', 'Pending('.$num_pending.')', 'id="pending_post"');
            };
            if ($this->session->userdata('role') === 'author') {
                echo anchor('post/rejected', 'Rejected('.$num_reject.')', 'id="pending_post"');
            };
            echo anchor('post/draft/'.$this->session->userdata('user_id'), 'Draft('.$num_draft.')', 'id="view_draft"');
            echo anchor('post/trash', 'Trash('.$num_trash.')', 'id="view_trash"');
            echo anchor('post/create', 'Create Post', 'id="create_post"');
         ?>
    </div>
    <div id="post_pending_reject_wrapper">
        <?php 
            $post_id = $rejected['post_id'];
            echo form_open('post/pending/reject/'.$post_id, array('id' => 'reject_post_form'));
            echo form_label('Title: ', 'title');
            echo form_input($reject_title).'<br/>';
            echo form_label('Full Text', 'full_text').'<br/>';
            echo form_textarea($full_text).'<br/>';
            echo form_label('Comment', 'comment').'<br/>';
            echo form_textarea($comment,'comment').'<br/>'; ?>
            <input type="submit" name="submit" value="Send" id="btn_submit" />
            <input type="button" id="btn_cancel" value="Cancel" onclick="window.location='<?php echo base_url() ?>draft/view';" />
        <?php echo form_close(); ?>
    </div>
</div>
